package website.haicheng.picturemanage.commo.response;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import lombok.Getter;
import lombok.Setter;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * @description:
 * @author: 582895699@qq.com
 * @time: 2020/11/5 下午 10:22
 */
@Getter
@Setter
public class TextResponse extends CommoResponse {

    /**
     * 消息类型，文本为text
     */
    @JacksonXmlProperty(localName = "MsgType")
    private String msgType = "text";

    /**
     * 回复的消息内容（换行：在content中能够换行，微信客户端就支持换行显示）
     */
    @JacksonXmlProperty(localName = "Content")
    private Object content;

    public TextResponse() {
    }

    public TextResponse(String userAccount, Object content) {
        super.setToUserName(userAccount);
        this.content = content;
    }
}
